package com.learn.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ExecutionAop {

    @Before("within(com.learn.all..*))")
    public void execute1(){
        System.out.println("within(com.learn.all..*))");
    }

    @Before("within(com.learn.service..IHelloService+)")
    public void execute2(){
        System.out.println("within(com.learn.service..IHelloService+)");
    }

    @Before("within(@com.learn..Secure *)")
    public void execute3(){
        System.out.println("within(@com.learn..Secure *)");
    }

}
